<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<button @click="addMsg()">ok</button>
			<ul>
				<li v-for="(item,index) in arrayText">{{index}}{{item}}</li>
			</ul>
			
			
			
		</div>
		<script>
		var app=new Vue({
			el:"#app",
			data:{
				arrayText:["白日依山尽","黄河入海流","欲穷千里目"]
			},
			methods:{
				addMsg:function(){
					this.arrayText.push("更上一层楼")
				}
			}
		})
		</script>
	</body>
</html>
